﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace IndoorPosition.Server.Database.Migrations.Migrations
{
    public partial class v004 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<double>(
                name: "X",
                table: "Floor",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "模型坐标X0对应的WGS84墨卡托投影坐标");

            migrationBuilder.AddColumn<double>(
                name: "X0",
                table: "Floor",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "模型参照点X坐标");

            migrationBuilder.AddColumn<double>(
                name: "Y",
                table: "Floor",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "模型坐标Y0对应的WGS84墨卡托投影坐标");

            migrationBuilder.AddColumn<double>(
                name: "Y0",
                table: "Floor",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "模型参照点Y坐标");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "X",
                table: "Floor");

            migrationBuilder.DropColumn(
                name: "X0",
                table: "Floor");

            migrationBuilder.DropColumn(
                name: "Y",
                table: "Floor");

            migrationBuilder.DropColumn(
                name: "Y0",
                table: "Floor");
        }
    }
}
